
<script language="javascript" type="text/javascript" src="/assets/My97DatePicker/jquery-1.8.2.js"></script>
<script language="javascript" type="text/javascript" src="/assets/libs/fastadmin-layer/dist/layer.js"></script>





<style>
    .g_p_type{
        display: none;
    }
    #suggestions{
        background-color: black;
        color: white;
    }

    #autoSuggestionsList{
        background-color: black;
        color: white;
    }
    .suggestionList li {

        margin: 0px 0px 0px 0px;
        padding: 3px;
        cursor: pointer;
    }

    .suggestionList li:hover {
        background-color: #659CD8;

    }

    #j1suggestions{
        background-color: black;
        color: white;
    }

    #j1autoSuggestionsList{
        background-color: black;
        color: white;
    }
    .j1suggestionList li {

        margin: 0px 0px 0px 0px;
        padding: 3px;
        cursor: pointer;
    }

    .j1suggestionList li:hover {
        background-color: #659CD8;

    }

</style>
<script language="JavaScript">




</script>




<div class="content">
    <div class="panel panel-default panel-intro">
        <div class="panel-body">
            <div id="" class="tab-content">
                <div class="tab-pane fade active in" id="one">
                    <div class="widget-body no-padding">
                        <div class="bootstrap-table">
                            <div class="fixed-table-toolbar">
                                <form action="" method="post">
                                    <table  class="table table-striped table-bordered table-hover table-nowrap" data-operate-edit="1" data-operate-del="1" width="100%" border="1">
                                        <thead>
                                        <tr>
                                            <th style="text-align: center; vertical-align: middle;width:4.5%;" data-field="id">
                                                <div class="th-inner ">产品ID</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle;width:4.5%;" data-field="id">
                                                <div class="th-inner ">产品名称</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                           <!-- <th style="text-align: center; vertical-align: middle;width:4.5%;" data-field="id">
                                                <div class="th-inner ">用户ID</div>
                                                <div class="fht-cell"></div>
                                            </th>-->
                                            <th style="text-align: center; vertical-align: middle;width:4.5%;" data-field="id">
                                                <div class="th-inner ">用户名</div>
                                                <div class="fht-cell"></div>
                                            </th>

                                            <th style="text-align: center; vertical-align: middle;width:15%;" data-field="title">
                                                <div class="th-inner ">总体评价</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle;width:15%;" data-field="title">
                                                <div class="th-inner ">导游服务</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle;width:5%;" data-field="title">
                                                <div class="th-inner ">行程安排</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle;width:5%;" data-field="title">
                                                <div class="th-inner ">餐饮住宿</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle;width:5%;" data-field="title">
                                                <div class="th-inner ">旅行交通</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle;width: 20%;" data-field="operate">
                                                <div class="th-inner ">时间</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle;width:15%;" data-field="title">
                                                <div class="th-inner ">状态</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                            <th style="text-align: center; vertical-align: middle;width: 20%;" data-field="operate">
                                                <div class="th-inner ">操作</div>
                                                <div class="fht-cell"></div>
                                            </th>
                                        </tr>
                                        </thead>
                                        <tbody data-listidx="0">
                                        {volist name="eList" id="vo"}
                                        <tr >
                                            <td style=" text-align: center; vertical-align: middle;">
                                                <span>{$vo.pid}</span>
                                            </td>
                                            <td style=" text-align: center; vertical-align: middle;">
                                                <span>{$vo.p_name}</span>
                                            </td>
                                           <!-- <td style=" text-align: center; vertical-align: middle;">
                                                <span>{$vo.userid}</span>
                                            </td>-->
                                            <td style="text-align: center; vertical-align: middle; ">
                                                {$vo.username}
                                            </td>

                                            <td style="text-align: center; vertical-align: middle; ">
                                                {$evaluation_score[$vo['pnum']]}
                                            </td>
                                            <td style="text-align: center; vertical-align: middle; ">
                                                {$evaluation_score[$vo['guide_num']]}
                                            </td>
                                            <td style="text-align: center; vertical-align: middle; ">
                                                {$evaluation_score[$vo['trip_num']]}
                                            </td>

                                            <td style="text-align: center; vertical-align: middle; ">
                                                {$evaluation_score[$vo['food_num']]}
                                            </td>

                                            <td style="text-align: center; vertical-align: middle; ">
                                                {$evaluation_score[$vo['service_num']]}
                                            </td>
                                            <td style="text-align: center; vertical-align: middle; ">
                                                {$vo.updatetime|date="Y-m-d",###}
                                            </td>
                                            <td   style="text-align: center; vertical-align: middle; ">
                                                <span  onclick="changeStatus('{$vo.id}'); " {if condition="$vo.mstatus eq 0"} class="btn btn-success" {else/} class="btn btn-danger"{/if}> {if condition="$vo.mstatus eq 0"}审核通过显示{else/} 不显示{/if}</span>

                                            </td>
                                            <td style="text-align: center; vertical-align: middle; ">
                                                <a href="/admin/user_evaluation/evaluation_edit?id={$vo.id}" class="btn btn-success btn-edit btn-disabled" title="编辑"><i class="fa fa-pencil"></i> 修改</a>
                                                <a href="javascript:;"  onclick="perform_del('{$vo.id}',this);"  class="btn btn-success btn-del" title="删除"><i class="fa fa-trash"></i> 删除</a>
                                            </td>
                                        </tr>
                                        {/volist}

                                        </tbody>
                                    </table>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script>

    function changeStatus(id){
        $.ajax({
            type:'post',
            dataType:'json',
            url:'/admin/user_evaluation/changeStatus',
            data:{"id":id},
            success:function(data){
                if(data.status){
                    alert(data.message);
                    location.reload();
                }else{
                    alert(data.message);
                }
            }
        })
    }

    function perform_del(id,obj){
        $.ajax({
            type:'post',
            dataType:'json',
            url:'/admin/user_evaluation/perform_del',
            data:{"id":id},
            success:function(data){
                if(data.status){
                    alert(data.message);
                    $(obj).parents("tr").remove();
                }else{
                    alert(data.message);
                }
            }
        })

    }


</script>







